package cn.lili.controller.feign;

import cn.lili.modules.promotion.client.GreenCommonwealContributionClient;
import cn.lili.modules.promotion.entity.dos.GreenCommonwealContribution;
import cn.lili.modules.promotion.service.GreenCommonwealContributionService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class GreenCommonwealContributionFeignController implements GreenCommonwealContributionClient {

    private final GreenCommonwealContributionService greenCommonwealContributionService;

    @Override
    public void contribution(GreenCommonwealContribution greenCommonwealContribution) {
        greenCommonwealContributionService.contribution(greenCommonwealContribution);
    }
}
